package com.alter.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import org.springframework.format.annotation.DateTimeFormat;

@MappedSuperclass
public class EnabledEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Column
    // @JsonIgnore 所有的JSON 序列化操作都会忽略该字段
    private Boolean isEnabled;

    /**
     * 创建时间
     */
    @Column
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date create_date;
    /**
     * 修改时间
     */
    @Column
    private Date modify_date;

    /**
     * 创建者
     */
    @Column
    private String creater;
    /**
     * 最后一次修改人
     */
    @Column
    private String modifer;

    public Boolean getIsEnabled() {
	return isEnabled;
    }

    public void setIsEnabled(Boolean isEnabled) {
	this.isEnabled = isEnabled;
    }

    public Date getCreate_date() {
	return create_date;
    }

    public void setCreate_date(Date create_date) {
	this.create_date = create_date;
    }

    public Date getModify_date() {
	return modify_date;
    }

    public void setModify_date(Date modify_date) {
	this.modify_date = modify_date;
    }

    public String getCreater() {
	return creater;
    }

    public void setCreater(String creater) {
	this.creater = creater;
    }

    public String getModifer() {
	return modifer;
    }

    public void setModifer(String modifer) {
	this.modifer = modifer;
    }
}
